package com.springmvc.api.aop;

import org.springframework.stereotype.Service;

/**
 * Created by cheng.xi on 12/10/15.
 */
@Service("bService")
public class BServiceImpl {
    public void barB(String msg, int type) {
        System.out.println("BServiceImpl.barB(msg:" + msg + " type:" + type + ")");
        if(type == 1)
            throw new IllegalArgumentException("测试异常");
    }

    public void fooB() {
        System.out.println("BServiceImpl.fooB()");
    }
}
